﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CardQuery.aspx.cs" Inherits="WebSite.admin.product.CardQuery" %>

 
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>上海万礼通网络科技后台管理系统</title>
    <link href="../main.css" rel="stylesheet" type="text/css" />
    <script language="javascript">
        parent.maintitle.innerHTML = "礼品卡管理";
        parent.contentmain.innerHTML = "<span class='title01'>所在位置：</span>卡片查询"
    </script>
    <script language='javascript'>
        var path = (window.top.location).toString();
        if (path.indexOf('login.aspx') == -1) {
            if (path.indexOf('index.aspx') == -1) {
                window.top.location = 'index.aspx';
            }
        }
	</script>
	
    <style type="text/css">


        </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <br />

      <table width="98%" border="0" cellpadding="0" cellspacing="4" bgcolor="#FAFBFC" class="img">
    <tr>
      <td width="4%"><img height="22" alt="SEARCH" src="../images/icon_search.gif" width="26" border="0" /></td>
      <td width="60px">卡号</td>
      <td width="120px"><input size="12" name="cardcodeFrom" id="cardcodeFrom" 
              runat="server" />&nbsp; </td>
      <td width="40px">至</td>
      <td width="120px"> 
          <input size="12" name="cardcodeTo" id="cardcodeTo" 
              runat="server" /></td>
       <td id="tdCompany" runat="server" width="80px">经销商</td>
      <td id="tdCompanySelect" runat="server" width="20%">
              <asp:DropDownList ID="ddlCompany0" runat="server">
              </asp:DropDownList>
            </td>
      <td width="8%" align="left">状态</td>
      <td align="left" >
     
      
          <asp:DropDownList ID="ddlStates" runat="server">
          <asp:ListItem Text="未激活" Value="4"></asp:ListItem>
          <asp:ListItem Text="已开卡" Value="1"></asp:ListItem>
          <asp:ListItem Text="已使用" Value="2"></asp:ListItem>
          <asp:ListItem Text="已失效" Value="3"></asp:ListItem>
         
          </asp:DropDownList>
      
   
      
      </td>
   
    </tr>
    <tr>
      <td width="4%">&nbsp;</td>
      <td>专区</td>
      <td colspan="3">
         <asp:DropDownList ID="ddlProfessionAreaType" AutoPostBack="true" runat="server" 
              onselectedindexchanged="ddlProfessionAreaType_SelectedIndexChanged"></asp:DropDownList>
            </td>
       <td  width="8%">卡片类别</td>
      <td  width="10%">
      
         <asp:DropDownList ID="ddlCardType" runat="server"></asp:DropDownList>
      
            </td>
      <td width="8%" align="left" colspan="2">
         <asp:ImageButton ID="ibtnSearch" ImageUrl="../images/button04.gif" runat="server" OnClick="ibtnSearch_Click" />
      &nbsp;
       <asp:ImageButton ID="ibtnExport" ImageUrl="../images/btnExport.gif" runat="server" OnClick="ibtnExport_Click" />
      
&nbsp;
 <asp:ImageButton  ID="btnExport0" ImageUrl="../images/btnExportTemplate.gif" runat="server"  OnClick="ibtnExport0_Click" />

        </td>
   
    </tr>
  </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F1F4F7">
<tr>
<td height="382" align="center" valign="top">
  <br />
  
  <asp:GridView ID="GridView1" runat="server" Width="98%" CellPadding="4" 
        ForeColor="#333333" DataKeyNames="cardid" AutoGenerateColumns="False" 
        AllowPaging="True" pagesize="100" BorderStyle="Solid" BorderWidth="1px" OnRowDataBound="GridView1_RowDataBound"
      ShowFooter="false" EmptyDataText="没有数据记录！！" AllowSorting="True" 
        OnSorting="GridView1_Sorting" onrowcommand="GridView1_RowCommand">
        <Columns>
         
        <asp:BoundField HeaderText="卡 号" DataField="cardcode" sortexpression="cardcode" />
        <asp:BoundField HeaderText="金 额" DataField="cardPrice" sortexpression="cardPrice" />
          <asp:BoundField HeaderText="礼品卡类别" DataField="CardTypeName" sortexpression="CardTypeName" />
              <asp:BoundField HeaderText="专区开始日期" DataField="starttime" DataFormatString="{0:yyyy-MM-dd}" sortexpression="endtime"  />
        <asp:BoundField HeaderText="专区截止日期" DataField="endtime" DataFormatString="{0:yyyy-MM-dd}" sortexpression="endtime"  />
          <asp:BoundField HeaderText="礼品商城截止日期" DataField="lasttime" DataFormatString="{0:yyyy-MM-dd}" sortexpression="lasttime" />
        <asp:BoundField HeaderText="状 态" DataField="statesName" sortexpression="states" />
        <asp:BoundField HeaderText="经销商" DataField="companyName" sortexpression="companyName" />
        <asp:BoundField HeaderText="" DataField="cardid" Visible="false" sortexpression="cardid" />
         <asp:BoundField HeaderText="短信状态" DataField="isSend" Visible="false" sortexpression="isSend" />

        </Columns>
             <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />             
             <PagerStyle BackColor="White" ForeColor="#333333" HorizontalAlign="Center" Font-Bold="True" Font-Size=30px />
             <HeaderStyle BackColor="#E2E7EB" Font-Bold="True" ForeColor="Black" HorizontalAlign="Left" />
             <AlternatingRowStyle BackColor="White" />
             <PagerSettings Visible="False" />
        </asp:GridView>
     <table width="90%" border="0" cellspacing="0" cellpadding="0">
       <tr>
         <td bgcolor="#E9ECEF">

               
       </td>
               
         <td height="25" align="right" bgcolor="#E9ECEF"><asp:Label ID="LblRecordCount" runat="server"></asp:Label>
            <asp:Label ID="LblCurrentIndex" runat="server"></asp:Label>
            <asp:Label ID="LblPageCount" runat="server"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <asp:LinkButton ID="btnFirst" CommandArgument="first" OnClick="PagerButtonClick" runat="server">首 页</asp:LinkButton> 
            <asp:LinkButton ID="btnPrev" CommandArgument="prev" OnClick="PagerButtonClick" runat="server">上一页</asp:LinkButton> 
            <asp:LinkButton ID="btnNext" CommandArgument="next" OnClick="PagerButtonClick" runat="server">下一页</asp:LinkButton> 
            <asp:LinkButton ID="btnLast" CommandArgument="last" OnClick="PagerButtonClick" runat="server">尾 页</asp:LinkButton> 
             跳转到第<asp:DropDownList ID="ddlCurrentPage" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"> </asp:DropDownList>页&nbsp;
         </td>
       </tr>
  
  
    </table>
</td>
    </tr>
  </table>
    </div>
    </form>
</body>
</html>
